package com.sskj.sys.domain.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.sskj.core.entity.BaseEntity;

@Entity
@Table(name = "mediaEntity")
public class MediaEntity extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column(length = 100)
	private String medianame; // 多媒体保存的名称

	@Column(length = 100)
	private String mediasuffix; // 多媒体保存的后缀 mp3,mp4,jpg

	@Column(length = 100)
	private String mediatype; // 多媒体保存的类型 image,vedio,audio等等

	@Column
	private long mediasize; // 多媒体保存的大小

	@Column(length = 150)
	private String mediaurl; // 多媒体保存的路径

	private String httpurl;

	@Column(length = 100)
	private String associatedentity; // 关联的实体对象

	@Column(length = 100)
	private String associatedid; // 关联的id

	@Override
	public String toString() {
		return "WeChatMediaEntity [medianame=" + medianame + ", mediasuffix=" + mediasuffix + ", mediatype=" + mediatype
				+ ", mediasize=" + mediasize + ", mediaurl=" + mediaurl + ", associatedentity=" + associatedentity
				+ ", associatedid=" + associatedid + "]";
	}

	public String getMedianame() {
		return medianame;
	}

	public void setMedianame(String medianame) {
		this.medianame = medianame;
	}

	public String getMediasuffix() {
		return mediasuffix;
	}

	public void setMediasuffix(String mediasuffix) {
		this.mediasuffix = mediasuffix;
	}

	public String getMediatype() {
		return mediatype;
	}

	public void setMediatype(String mediatype) {
		this.mediatype = mediatype;
	}

	public long getMediasize() {
		return mediasize;
	}

	public void setMediasize(long mediasize) {
		this.mediasize = mediasize;
	}

	public String getMediaurl() {
		return mediaurl;
	}

	public void setMediaurl(String mediaurl) {
		this.mediaurl = mediaurl;
	}

	public String getAssociatedentity() {
		return associatedentity;
	}

	public void setAssociatedentity(String associatedentity) {
		this.associatedentity = associatedentity;
	}

	public String getAssociatedid() {
		return associatedid;
	}

	public void setAssociatedid(String associatedid) {
		this.associatedid = associatedid;
	}

	public String getHttpurl() {
		return httpurl;
	}

	public void setHttpurl(String httpurl) {
		this.httpurl = httpurl;
	}

}
